package com.zjj.spring.read.xml.aop.springaop;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

/**
 * 对方法增强
 * @author zhuangjiajie778
 */
public class GreetingBeforeAfterAdvice  implements MethodBeforeAdvice ,AfterReturningAdvice{

	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		System.out.println("【2】 --- GreetingBeforeAfterAdvice after hello ---");		
	}

	@Override
	public void before(Method method, Object[] args, Object target) throws Throwable {
		System.out.println("【2】 --- GreetingBeforeAfterAdvice after hello ---");		
	}

}
